package cn.com.dcsgo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 会员收货地址（TableName member_addr）
 */
@Data
@TableName(value = "member_addr")
public class MemberAddr {
    /**
     * 地址ID
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "地址ID")
    private Long addrId;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private String openId;

    /**
     * 收货人
     */
    @Schema(description = "收货人")
    private String receiver;

    /**
     * 省ID
     */
    @Schema(description = "省ID")
    private Long provinceId;

    /**
     * 省
     */
    @Schema(description = "省")
    private String province;

    /**
     * 城市
     */
    @Schema(description = "城市")
    private String city;

    /**
     * 城市ID
     */
    @Schema(description = "城市ID")
    private Long cityId;

    /**
     * 区
     */
    @Schema(description = "区")
    private String area;

    /**
     * 区ID
     */
    @Schema(description = "区ID")
    private Long areaId;

    /**
     * 邮编
     */
    @Schema(description = "邮编")
    private String postCode;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String addr;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    private String mobile;

    /**
     * 状态（1正常，0无效）
     */
    @Schema(description = "状态（1正常，0无效）")
    private Integer status;

    /**
     * 是否默认地址（1是，0否）
     */
    @Schema(description = "是否默认地址（1是，0否）")
    private Integer commonAddr;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;
}
